package com.xiaoshuidi.cloud.module.iot.dal.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaoshuidi.cloud.module.iot.dal.pojo.TbFaceDatabase;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 人脸库 Mapper 接口
 * </p>
 *
 * @author Feng
 * @since 2023-06-25
 */
@Mapper
public interface TbFaceDatabaseMapper extends BaseMapper<TbFaceDatabase> {

    @Update("update tb_face_database set status = #{status} where ${ew.sqlSegment}")
    int invalidityFace(@Param("ew") LambdaQueryWrapper<?> wrapper, @Param("status") String status);
}
